package cate.common.table.activity.dailygift;

import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@NoteClass(value = "一键购买")
public class DailyGiftAllInRow extends ERow {
    @NoteField(value = "活动配置ID")
    public int confId;
    @NoteField(value = "价格")
    public int price;
    @NoteField(value = "充值项")
    public int payItemId;
    @NoteField(value = "vip")
    public int vip;

    @Override
    public void parse(XSSFRowWrap xrw) {
        super.parse(xrw);
        this.id = xrw.getInteger("活动配置ID");
        this.confId = xrw.getInteger("活动配置ID");
        this.price = xrw.getInteger("价格",9999999);
        this.payItemId = xrw.getInteger("充值项");
        this.vip = xrw.getInteger("vip", 0);
    }
}
